﻿@using MvcArchStarter.Domain
@model Blog
@{
    ViewBag.Title = "Posts";
}

@section featured {
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1>@Model.Name.</h1>
                <h2>@ViewBag.Message</h2>
            </hgroup>
            <p>
                A listing of all of the posts for @Model.Name
            </p>
        </div>
    </section>
}

@Html.ActionLink("Create new blog entry", "CreateBlogEntry", new {BlogId = @Model.BlogID}, null)

<ul>
    @foreach (Post post in Model.Posts)
    {
        <li>
            @post.Title
            <br />
            @post.Content
            <br />
            @post.DatePosted.ToString("G")
        </li>
    }
</ul>
